import type { LegacyRef } from 'react';
import { WidthEnum } from '../common';

export interface FormOptions {
  /**
   * 宽度相等
   */
  equal?: boolean;
  /**
   * 转发 ref
   */
  forwardedRef?: LegacyRef<HTMLElement>;
}

export interface FormFieldOptions {
  /**
   * 宽度
   */
  wide?: WidthEnum;
  /**
   * 转发 ref
   */
  forwardedRef?: LegacyRef<HTMLElement>;
}

export interface FormGroupOptions {
  /**
   * 内联
   */
  inline?: boolean;
  /**
   * 相等宽度
   */
  equal?: boolean;
  /**
   * 宽度
   */
  widths?:
    | 2
    | 3
    | 4
    | 5
    | 6
    | 7
    | 8
    | 9
    | 10
    | '2'
    | '3'
    | '4'
    | '5'
    | '6'
    | '7'
    | '8'
    | '9'
    | '10'
    | 'two'
    | 'three'
    | 'four'
    | 'five'
    | 'six'
    | 'seven'
    | 'eight'
    | 'nine'
    | 'ten';
  /**
   * 转发 ref
   */
  forwardedRef?: LegacyRef<HTMLElement>;
}
